/*var a = 80;
do
{
	console.log(a)
		a--
}
while (a >=71);
*/

/*var b = 1,c=0;
do{
if (b%2 != 0)
{
c +=b
}
b++

}while(b <= 100);
console.log(c)
*/
//一张纸0.0001米 8848
/*var zhi = 0.0001,c = 0;
do{
	zhi *=2;
	c++;
}
while (zhi < 8848);
console.log(c);*/
/*
var a = 0;
var password = "123456"
do{
	var ar = prompt("input password")
		if (ar === password){
		alert("login success")
		break
		}
		a++
		if (a >= 3)
		{
		alert("more than three")
		break
		}
}while (true);
*/
  

  var pwd = "123456",a=1;
  do{
	  var str = prompt("请输入密码")
	    a++
		  if (a > 3)
		  {
		  alert("输错三次")
		  break
		  }
  }while ( str != pwd );
	console.log( eval(pwd) )
